from manim import *
from numpy import flip, insert

LV,QL,QH,JH='#75cfb8','#bbdfc8','#f0e5d8','#ffc478'

class p1(ThreeDScene):
    def construct(self):
        self.set_camera_orientation(phi=250*DEGREES, theta=-PI / 6)
        # self.add(NumberPlane())
        # self.camera.frame.scale(0.7)
        li=[LV,QL,QH,JH]
        for h in range(4):
            for i in range(h+1):
                for j in range(h+1):
                    self.add(
                        Sphere([i-0.5*h,j-0.5*h,0.7*h-1],0.5).set_color(li[h])
                    )
        self.wait()